<!DOCTYPE HTML>
<html>
  <head>
    <title><?php echo SITE_NAME; ?> | 团购导航网站大全</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <link rel="shortcut icon" href="<?php echo base_url(); ?>code/images/icon.ico" />
    <meta name="keywords" content=" 团购, 导航, 拉手, 美团, <?php echo SITE_NAME; ?>">
    <meta name="description" content="中国最精准全面又实惠的团购导航网站">
    <link rel="shortcut icon" href="<?php echo base_url(); ?>code/images/icon.ico" />
    <link rel="stylesheet" type="text/css" href="<?php echo base_url(); ?>code/ttz.css" media="screen">
    <link rel="stylesheet" type="text/css" href="<?php echo base_url(); ?>code/cupertino/jquery-ui-1.8.10.custom.css" media="screen">
    <script type="text/javascript" src="<?php echo base_url(); ?>code/jquery-1.5.1.min.js"></script>
    <script type="text/javascript" src="<?php echo base_url(); ?>code/jquery-ui.js"></script>
    <script type="text/javascript" src="<?php echo base_url(); ?>code/ttz.js"></script>
  </head>
  <body>
	<div id="wrapper">
		<?php require(dirname(dirname(__FILE__)).'/head.php'); ?>
		<?php require(dirname(dirname(__FILE__)).'/nav.php'); ?>
		<div id="dashboard" class="box wrap">
		    <div id="settings-top">
		        <ul class="userSetting">
		            <li <?php echo substr($type,0,6)=='change'?'':'class="on"' ?>>
                  <a href="<?php echo site_url('user/tags')?>"><h2>我的偏好</h2></a>
		            </li>
		            <li <?php echo substr($type,0,6)=='change'?'class="on"':'' ?>>
		                <a href="<?php echo site_url('user/changemail')?>"><h2>我的信息</h2></a>
		            </li>
		        </ul>
		        <div class="clear"></div>
		    </div><!-- end #dashboard-top -->
		    <div id="dashboard-body">
				<ul id="settings-nav">
				<?php if(substr($type,0,6)=='change'){ ?>
					<li <?php echo $type=='changemail'?'class="on"':'' ?>><a href="<?php echo site_url('user/changemail')?>">更改邮箱</a></li>
					<li <?php echo $type=='changepwd'?'class="on"':'' ?>><a href="<?php echo site_url('user/changepwd')?>">更改密码</a></li>
				<?php }else{ ?>
					<li <?php echo $type=='tags'?'class="on"':'' ?>><a href="<?php echo site_url('user/tags')?>">团购类别</a></li>
					<li <?php echo $type=='city'?'class="on"':'' ?>><a href="<?php echo site_url('user/city')?>">我的城市</a></li>
					<li <?php echo $type=='site'?'class="on"':'' ?>><a href="<?php echo site_url('user/site')?>">来源网站</a></li>
					<li <?php echo $type=='mail'?'class="on"':'' ?>><a href="<?php echo site_url('user/mail')?>">邮件发送</a></li>
				<?php } ?>
        		</ul>
			<?php require("$type.php"); ?>
		    </div><!-- end #dashboard-body -->
		</div><!-- end #dashboard -->


	</div><!-- end #wrapper -->
	<div class='clear'></div>

     <?php require(dirname(dirname(__FILE__)).'/foot.php'); ?>